#ifndef _Thread_H_
#define _Thread_H_

#include "Type.h"


class  Thread
{
public:
	Thread();
	virtual ~Thread();

	virtual bool Run();
	virtual void Stop();

	virtual void Worker() = 0;


protected:
	static uint _WorkThread(void *pvArg);

	bool m_bRun;
	HANDLE m_hThread;

	uint m_uiId;

};


#endif	//	_Thread_H_